using System;
using System.Data;
using System.Data.SqlTypes;
using System.Data.SqlClient;

namespace DataEntity
{
	public class T_Report_Change_ReduceUnit : DBInteractionBase
	{
		#region Class Member Declarations
			private SqlDateTime		_report_Change_ReduceUnit_FillDate, _report_Change_ReduceUnit_ExchangeDate;
			private SqlInt32		_report_Change_ReduceUnit_ReasonID, _report_Plan_Audit, _report_Change_ReduceUnit_ExchangeTypeID, _report_Change_ReduceUnit_FileID;
			private SqlDecimal		_report_Change_ReduceUnit_Comm, _report_Change_ReduceUnit_AdjustPrice, _report_Change_ReduceUnit_AdjustComm, _report_Change_ReduceUnit_Actual, _report_Change_ReduceUnit_FormlyerPrice, _report_Change_ReduceUnit_NowPrice;
			private SqlString		_report_Change_ReduceUnit_Building, _report_Change_ReduceUnit_Reason, _report_Change_ReduceUnit_Address, _report_Change_ReduceUnit_ReportNO, _report_Change_ReduceUnit_Operater;
            private SqlGuid         _report_Change_ReduceUnit_ID, _report_Change_ReduceUnit_ProjectID;
		#endregion


		#region Class Property Declarations
		public SqlGuid Report_Change_ReduceUnit_ID
		{
			get
			{
				return _report_Change_ReduceUnit_ID;
			}
			set
			{
				_report_Change_ReduceUnit_ID = value;
			}
		}
        public SqlGuid Report_Change_ReduceUnit_ProjectID
        {
            get
            {
                return _report_Change_ReduceUnit_ProjectID;
            }
            set
            {
                _report_Change_ReduceUnit_ProjectID = value;
            }
        }

		public SqlInt32 Report_Change_ReduceUnit_ExchangeTypeID
		{
			get
			{
				return _report_Change_ReduceUnit_ExchangeTypeID;
			}
			set
			{
				SqlInt32 report_Change_ReduceUnit_ExchangeTypeIDTmp = (SqlInt32)value;
				if(report_Change_ReduceUnit_ExchangeTypeIDTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Change_ReduceUnit_ExchangeTypeID", "Report_Change_ReduceUnit_ExchangeTypeID can't be NULL");
				}
				_report_Change_ReduceUnit_ExchangeTypeID = value;
			}
		}


		public SqlString Report_Change_ReduceUnit_Building
		{
			get
			{
				return _report_Change_ReduceUnit_Building;
			}
			set
			{
				SqlString report_Change_ReduceUnit_BuildingTmp = (SqlString)value;
				if(report_Change_ReduceUnit_BuildingTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Change_ReduceUnit_Building", "Report_Change_ReduceUnit_Building can't be NULL");
				}
				_report_Change_ReduceUnit_Building = value;
			}
		}


		public SqlDateTime Report_Change_ReduceUnit_FillDate
		{
			get
			{
				return _report_Change_ReduceUnit_FillDate;
			}
			set
			{
				SqlDateTime report_Change_ReduceUnit_FillDateTmp = (SqlDateTime)value;
				if(report_Change_ReduceUnit_FillDateTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Change_ReduceUnit_FillDate", "Report_Change_ReduceUnit_FillDate can't be NULL");
				}
				_report_Change_ReduceUnit_FillDate = value;
			}
		}


		public SqlString Report_Change_ReduceUnit_Address
		{
			get
			{
				return _report_Change_ReduceUnit_Address;
			}
			set
			{
				SqlString report_Change_ReduceUnit_AddressTmp = (SqlString)value;
				if(report_Change_ReduceUnit_AddressTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Change_ReduceUnit_Address", "Report_Change_ReduceUnit_Address can't be NULL");
				}
				_report_Change_ReduceUnit_Address = value;
			}
		}


		public SqlString Report_Change_ReduceUnit_Operater
		{
			get
			{
				return _report_Change_ReduceUnit_Operater;
			}
			set
			{
				SqlString report_Change_ReduceUnit_OperaterTmp = (SqlString)value;
				if(report_Change_ReduceUnit_OperaterTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Change_ReduceUnit_Operater", "Report_Change_ReduceUnit_Operater can't be NULL");
				}
				_report_Change_ReduceUnit_Operater = value;
			}
		}


		public SqlString Report_Change_ReduceUnit_ReportNO
		{
			get
			{
				return _report_Change_ReduceUnit_ReportNO;
			}
			set
			{
				SqlString report_Change_ReduceUnit_ReportNOTmp = (SqlString)value;
				if(report_Change_ReduceUnit_ReportNOTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Change_ReduceUnit_ReportNO", "Report_Change_ReduceUnit_ReportNO can't be NULL");
				}
				_report_Change_ReduceUnit_ReportNO = value;
			}
		}


		public SqlDateTime Report_Change_ReduceUnit_ExchangeDate
		{
			get
			{
				return _report_Change_ReduceUnit_ExchangeDate;
			}
			set
			{
				SqlDateTime report_Change_ReduceUnit_ExchangeDateTmp = (SqlDateTime)value;
				if(report_Change_ReduceUnit_ExchangeDateTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Change_ReduceUnit_ExchangeDate", "Report_Change_ReduceUnit_ExchangeDate can't be NULL");
				}
				_report_Change_ReduceUnit_ExchangeDate = value;
			}
		}


		public SqlDecimal Report_Change_ReduceUnit_FormlyerPrice
		{
			get
			{
				return _report_Change_ReduceUnit_FormlyerPrice;
			}
			set
			{
				SqlDecimal report_Change_ReduceUnit_FormlyerPriceTmp = (SqlDecimal)value;
				if(report_Change_ReduceUnit_FormlyerPriceTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Change_ReduceUnit_FormlyerPrice", "Report_Change_ReduceUnit_FormlyerPrice can't be NULL");
				}
				_report_Change_ReduceUnit_FormlyerPrice = value;
			}
		}


		public SqlDecimal Report_Change_ReduceUnit_NowPrice
		{
			get
			{
				return _report_Change_ReduceUnit_NowPrice;
			}
			set
			{
				SqlDecimal report_Change_ReduceUnit_NowPriceTmp = (SqlDecimal)value;
				if(report_Change_ReduceUnit_NowPriceTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Change_ReduceUnit_NowPrice", "Report_Change_ReduceUnit_NowPrice can't be NULL");
				}
				_report_Change_ReduceUnit_NowPrice = value;
			}
		}


		public SqlDecimal Report_Change_ReduceUnit_AdjustPrice
		{
			get
			{
				return _report_Change_ReduceUnit_AdjustPrice;
			}
			set
			{
				SqlDecimal report_Change_ReduceUnit_AdjustPriceTmp = (SqlDecimal)value;
				if(report_Change_ReduceUnit_AdjustPriceTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Change_ReduceUnit_AdjustPrice", "Report_Change_ReduceUnit_AdjustPrice can't be NULL");
				}
				_report_Change_ReduceUnit_AdjustPrice = value;
			}
		}


		public SqlDecimal Report_Change_ReduceUnit_Comm
		{
			get
			{
				return _report_Change_ReduceUnit_Comm;
			}
			set
			{
				SqlDecimal report_Change_ReduceUnit_CommTmp = (SqlDecimal)value;
				if(report_Change_ReduceUnit_CommTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Change_ReduceUnit_Comm", "Report_Change_ReduceUnit_Comm can't be NULL");
				}
				_report_Change_ReduceUnit_Comm = value;
			}
		}


		public SqlDecimal Report_Change_ReduceUnit_Actual
		{
			get
			{
				return _report_Change_ReduceUnit_Actual;
			}
			set
			{
				SqlDecimal report_Change_ReduceUnit_ActualTmp = (SqlDecimal)value;
				if(report_Change_ReduceUnit_ActualTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Change_ReduceUnit_Actual", "Report_Change_ReduceUnit_Actual can't be NULL");
				}
				_report_Change_ReduceUnit_Actual = value;
			}
		}


		public SqlDecimal Report_Change_ReduceUnit_AdjustComm
		{
			get
			{
				return _report_Change_ReduceUnit_AdjustComm;
			}
			set
			{
				SqlDecimal report_Change_ReduceUnit_AdjustCommTmp = (SqlDecimal)value;
				if(report_Change_ReduceUnit_AdjustCommTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Change_ReduceUnit_AdjustComm", "Report_Change_ReduceUnit_AdjustComm can't be NULL");
				}
				_report_Change_ReduceUnit_AdjustComm = value;
			}
		}


		public SqlInt32 Report_Change_ReduceUnit_ReasonID
		{
			get
			{
				return _report_Change_ReduceUnit_ReasonID;
			}
			set
			{
				SqlInt32 report_Change_ReduceUnit_ReasonIDTmp = (SqlInt32)value;
				if(report_Change_ReduceUnit_ReasonIDTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Change_ReduceUnit_ReasonID", "Report_Change_ReduceUnit_ReasonID can't be NULL");
				}
				_report_Change_ReduceUnit_ReasonID = value;
			}
		}


		public SqlInt32 Report_Change_ReduceUnit_FileID
		{
			get
			{
				return _report_Change_ReduceUnit_FileID;
			}
			set
			{
				SqlInt32 report_Change_ReduceUnit_FileIDTmp = (SqlInt32)value;
				if(report_Change_ReduceUnit_FileIDTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Change_ReduceUnit_FileID", "Report_Change_ReduceUnit_FileID can't be NULL");
				}
				_report_Change_ReduceUnit_FileID = value;
			}
		}


		public SqlString Report_Change_ReduceUnit_Reason
		{
			get
			{
				return _report_Change_ReduceUnit_Reason;
			}
			set
			{
				SqlString report_Change_ReduceUnit_ReasonTmp = (SqlString)value;
				if(report_Change_ReduceUnit_ReasonTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Change_ReduceUnit_Reason", "Report_Change_ReduceUnit_Reason can't be NULL");
				}
				_report_Change_ReduceUnit_Reason = value;
			}
		}


		public SqlInt32 Report_Plan_Audit
		{
			get
			{
				return _report_Plan_Audit;
			}
			set
			{
				SqlInt32 report_Plan_AuditTmp = (SqlInt32)value;
				if(report_Plan_AuditTmp.IsNull)
				{
					throw new ArgumentOutOfRangeException("Report_Plan_Audit", "Report_Plan_Audit can't be NULL");
				}
				_report_Plan_Audit = value;
			}
		}
		#endregion
	}
}
